<%@ tag language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>

<c:if test="${message != null || messageKey != null}">
<div class="alert alert-success">
	<button type="button" class="close" data-dismiss="alert">
		<i class="ace-icon fa fa-times"></i>
	</button>

	<p>
		<strong>
			<i class="ace-icon fa fa-check"></i>			
		</strong>
		<c:if test="${message != null }">
		<c:out value="${message }" escapeXml="false"></c:out>
		</c:if>
		<c:if test="${messageKey != null }">
		<fmt:message key="${messageKey}" ></fmt:message>
		</c:if>
		
	</p>
</div>
</c:if>
<c:if test="${error != null || errorKey != null }">
<div class="alert alert-danger">
	<button type="button" class="close" data-dismiss="alert">
		<i class="ace-icon fa fa-times"></i>
	</button>

	<strong>
		<i class="ace-icon fa fa-times"></i>
	</strong>

	<c:if test="${error != null }">
		<c:out value="${error }" escapeXml="false"></c:out>
		</c:if>
		<c:if test="${errorKey != null }">
		<fmt:message key="${errorKey}"></fmt:message>
		</c:if>
</div>
</c:if>
